import { request } from '~/api/request'

export const queryTakeCastItems = (data: any): any =>
  request('post', '/api/internal/v1/item/take/query/castItems', data)

export const queryBorrowCastItems = (data: any): any =>
  request('post', '/api/internal/v1/item/borrow/query/castItems', data)

export const queryWaitBackCaseList = (data: any): any =>
  request('post', '/api/internal/v1/item/borrow/query/waitBackCaseList', data)

export const queryWaitBackCaseLists = (data: any): any =>
  request('post', '/api/internal/v1/item/take/query/waitBackCaseList', data)

export const handleGiveBack = (data: any): any => request('post', '/api/internal/v1/item/manage/takeGiveBack', data)

export const handleBorrowBack = (data: any): any => request('post', '/api/internal/v1/item/manage/borrowGiveBack', data)
